<div style="width:100%; border:1px solid #efefef; margin-top:-1px; background:#f6f4f5; min-height:600px; ">
	<div class="container">
		<h1>Activitate</h1>
		<?php
		if(count($top)>0) {
			echo '<h2>Top parking</h2>
			<table width="100%" cellspacing="2" style="background:#fff; border: 1px solid #CCC;">';
			echo '<tr style="background-color: #efefef; height: 20px;"><td><b>Nume</b></td><td><b>Total utilizat</b></td></tr>';
			echo '<tr><td>'.$top['name'].'</td><td>'.$top['total'].'</td></tr>';
			echo '</table>';
		}
		?>
		
		<?php 
		if(count($latest)>0) {
			echo '<h2>Activitate ultimele 7 zile</h2>
			<table width="100%" cellspacing="2" style="background:#fff; border: 1px solid #CCC;">';
			echo '<tr style="background-color: #efefef; height: 20px;"><td><b>Numar</b></td><td><b>Expira</b></td><td><b>Disponibilitate</b></td><td></td></tr>';
			foreach($latest as $row) {
				echo '<tr>';
				echo '<td>'.$row['auth_no'].'</td>';
				echo '<td>'.$row['valability'].'</td>';
				if($row['start_hour']==$row['end_hour'] || $row['start_hour']=='' || $row['end_hour']=='') {
					echo '<td>nonstop</td>';
				} else {
					echo '<td>'.$row['start_hour'].':00 - '.$row['end_hour'].':00</td>';
				}
				echo '<td>detalii | edit | sterge</td>';
				echo '</tr>';
			}
		}
		echo '</table>';
		?>
		
		<?php if(count($top)==0 && count($latest)==0) echo '<span class="error">Contul dumneavoastra nu a inregistrat activitate!</span>'; ?>
	</div>
</div>